import FormLayout from './layouts/FormLayout'
import ListLayout from './layouts/ListLayout'
import QueryLayout from './layouts/QueryLayout'

// 这里是注册全局的自定义组件，因为layout的组件每个页面都会用，所以直接注册全局的，不用每个页面再引用组件
const components = [
  { name: 'FormLayout', component: FormLayout },
  { name: 'ListLayout', component: ListLayout },
  { name: 'QueryLayout', component: QueryLayout }
]

export default {
  install (Vue) {
    for (let t of components) {
      Vue.component(t.name, t.component)
    }
  }
}
